package entity;

import java.sql.Date;
import java.util.List;

public class News {
	
	private int nid;
	private String ntitle;
	private String nauthor;
	private String ntext;
	private Date ncreatedate;
	
	
	public News(int nid, String ntitle, String nauthor, String ntext) {
		this.nid = nid;
		this.ntitle = ntitle;
		this.nauthor = nauthor;
		this.ntext = ntext;
	}
	public int getNid() {
		return nid;
	}
	public void setNid(int nid) {
		this.nid = nid;
	}
	public String getNtitle() {
		return ntitle;
	}
	public void setNtitle(String ntitle) {
		this.ntitle = ntitle;
	}
	public String getNauthor() {
		return nauthor;
	}
	public void setNauthor(String nauthor) {
		this.nauthor = nauthor;
	}
	public String getNtext() {
		return ntext;
	}
	public void setNtext(String ntext) {
		this.ntext = ntext;
	}
	public Date getNcreatedate() {
		return ncreatedate;
	}
	public void setNcreatedate(Date ncreatedate) {
		this.ncreatedate = ncreatedate;
	}
	public News() {
	}
	public News(String ntitle, String nauthor, String ntext) {
		this.ntitle = ntitle;
		this.nauthor = nauthor;
		this.ntext = ntext;
	}
}
